package com.ruoyi.smart.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.smart.mapper.SmartEquipmentStateEnumMapper;
import com.ruoyi.smart.domain.SmartEquipmentStateEnum;
import com.ruoyi.smart.service.ISmartEquipmentStateEnumService;

/**
 * 设备状态枚举Service业务层处理
 * 
 * @author minwei
 * @date 2022-04-07
 */
@Service
public class SmartEquipmentStateEnumServiceImpl implements ISmartEquipmentStateEnumService 
{
    @Autowired
    private SmartEquipmentStateEnumMapper smartEquipmentStateEnumMapper;

    /**
     * 查询设备状态枚举
     * 
     * @param id 设备状态枚举主键
     * @return 设备状态枚举
     */
    @Override
    public SmartEquipmentStateEnum selectSmartEquipmentStateEnumById(Long id)
    {
        return smartEquipmentStateEnumMapper.selectSmartEquipmentStateEnumById(id);
    }

    /**
     * 查询设备状态枚举列表
     * 
     * @param smartEquipmentStateEnum 设备状态枚举
     * @return 设备状态枚举
     */
    @Override
    public List<SmartEquipmentStateEnum> selectSmartEquipmentStateEnumList(SmartEquipmentStateEnum smartEquipmentStateEnum)
    {
        return smartEquipmentStateEnumMapper.selectSmartEquipmentStateEnumList(smartEquipmentStateEnum);
    }

    /**
     * 新增设备状态枚举
     * 
     * @param smartEquipmentStateEnum 设备状态枚举
     * @return 结果
     */
    @Override
    public int insertSmartEquipmentStateEnum(SmartEquipmentStateEnum smartEquipmentStateEnum)
    {
        return smartEquipmentStateEnumMapper.insertSmartEquipmentStateEnum(smartEquipmentStateEnum);
    }

    /**
     * 修改设备状态枚举
     * 
     * @param smartEquipmentStateEnum 设备状态枚举
     * @return 结果
     */
    @Override
    public int updateSmartEquipmentStateEnum(SmartEquipmentStateEnum smartEquipmentStateEnum)
    {
        return smartEquipmentStateEnumMapper.updateSmartEquipmentStateEnum(smartEquipmentStateEnum);
    }

    /**
     * 批量删除设备状态枚举
     * 
     * @param ids 需要删除的设备状态枚举主键
     * @return 结果
     */
    @Override
    public int deleteSmartEquipmentStateEnumByIds(Long[] ids)
    {
        return smartEquipmentStateEnumMapper.deleteSmartEquipmentStateEnumByIds(ids);
    }

    /**
     * 删除设备状态枚举信息
     * 
     * @param id 设备状态枚举主键
     * @return 结果
     */
    @Override
    public int deleteSmartEquipmentStateEnumById(Long id)
    {
        return smartEquipmentStateEnumMapper.deleteSmartEquipmentStateEnumById(id);
    }
}
